//
//  UserInfoModel.m
//  mendianjieke
//
//  Created by 响当当 on 8/7/19.
//  Copyright © 2019 dongzheng. All rights reserved.
//

#import "UserInfoModel.h"

@implementation UserInfoModel
- (id)initWithDic:(NSDictionary *)dic
{
    if (self = [super init])
    {
        self.totalPayCustomer = IFNULL(dic[@"totalPayCustomer"], @0);
        self.terminalState = IFNULL(dic[@"terminalState"], @0);
        self.totalAmount = IFNULL(dic[@"totalAmount"],@0);
        self.totalDays = IFNULL(dic[@"totalDays"], @0);
        self.totalTime = IFNULL(dic[@"totalTime"], @0);
        self.totalCustomer = IFNULL(dic[@"totalCustomer"], @0);
        self.isFacialAuth = IFNULL(dic[@"isFacialAuth"],@0);
        self.userName = IFNULL(dic[@"userName"], @"X-漫咖啡天安门广场店");
        self.shopName = IFNULL(dic[@"shopName"], @"用户X");
        self.isDemoUser = IFNULL(dic[@"isDemoUser"],@0);

    }
    return self;
}
@end
